package com.lovecar.view;

import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.lovecar.R;

public class MainActivity extends Activity {
	private Button weatherBtn;
	private Button weiZhangBtn;
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 setContentView(R.layout.main);	
		 weatherBtn=(Button) findViewById(R.id.weacherButton);
		 weiZhangBtn=(Button) findViewById(R.id.weiZhangbutton);
		 weatherBtn.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Intent  it=new Intent ();
					it.setClass(MainActivity.this, WeatherAcitvity.class);
					MainActivity.this.startActivity(it);
				}
			});
		 weiZhangBtn.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Intent  it=new Intent ();
					it.setClass(MainActivity.this, WeiZhangActivity.class);
					MainActivity.this.startActivity(it);
				}
			});
		// TODO Put your code here
	}
}
